package lab02.test37;

/**
 * Created by MECHREV on 2017/11/22.
 */
public class Undergraduate extends Student{
    Undergraduate(String name,double a,double b,double c)
    {
        this.name=name;
        this.a=a;
        this.b=b;
        this.c=c;
        this.average=(a+b+c)/3;
    }
    public void Display(){
        if(this.average>=60)
            status =1;
        else
            status=0;
        if(status==1)
            System.out.println(name+": 通过！");
        if(status==0)
            System.out.println(name+": 不通过！");
    }
}